package com.yn.iotxiao.sql.entity.Group;

import com.gitee.sunchenbin.mybatis.actable.annotation.*;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;

import java.util.Date;

@Data
@Table(name = "GroupDevice", comment = "权限组设备")
public class GroupDevice {

    @IsKey
    @IsAutoIncrement
    @Index(columns = "groupid,deviceid")
    private long serid;

    @Column
    private String groupid;
    @Column
    private String deviceid;

    @Column(name = "CREATETIME",comment = "录入时间")
    @ColumnType(MySqlTypeConstant.TIMESTAMP)
    @DefaultValue("CURRENT_TIMESTAMP")
    private Date createTime;

}
